package cn.wildfirechat.common;

import android.os.Environment;

import java.io.File;

public class ClientConfig {
    public static String APPLICATION_ID = "com.cxkj.zll";

    // 开发接口
//    public static String BASE_URL = "http://134.175.3.147/zll-restful/";
    public static String BASE_URL = "http://192.168.0.169:8082/zll-restful/";//trj
//    public static String BASE_URL = "http://192.168.0.141:8082/zll-restful/";//yzh

    public static String H5_URL = "";

    public static String IMG_URL = "";

    public static final String SOCKET_URL = "";


    // 友盟appKey
    public static final String UMEG_APPKEY = "5f3b4702b4b08b653e962e75";

    // 微信AppId
    public static final String WX_APP_ID = "wx88e6d6dc4247c19b";
    // 微信AppSecret
    public static final String WX_APP_SECRET = "92182e6be6345ad182c85362cc82245e";
    // QQ AppId
    public static final String QQ_APP_ID = "";
    // QQ AppKey
    public static final String QQ_APP_KEY = "";


    // 腾讯云互动直播SDK AppId
    public static final int LIVE_SDK_APPID = 1400024775;
    // 腾讯云互动直播SDK AccountType
    public static final int LIVE_ACCOUNT_TYPE = 10556;


    // 默认存放文件下载的路径
    public final static String DEFAULT_SAVE_FILE_PATH = Environment
            .getExternalStorageDirectory()
            + File.separator
            + "mdlive"
            + File.separator + "download" + File.separator;

}


/*

j.KLog.json(" <--", body);

s.KLog.e(" -->" + request.url().url());

rh.builder.addInterceptor(new Interceptor() {
            @Override
            public Response intercept(Chain chain) throws IOException {
                Request request = chain.request();
                RequestBody body = request.body();
                Request.Builder builder = request.newBuilder();
                HashMap<String, Object> map = new HashMap<>();
                if (body instanceof FormBody) {
                    FormBody formBody = (FormBody) body;
                    for (int i = 0; i < formBody.size(); i++) {
                        map.put(formBody.name(i), formBody.value(i));
                    }
                    String json = new Gson().toJson(map);
                    KLog.json(" -->" + request.url().url(), json);
                    RequestBody requestBody = RequestBody.create(MediaType.parse("application/json; charset=utf-8"), json);
                    builder.method(request.method(), body);
                } else {
                    if (body instanceof MultipartBody) {
                        MultipartBody multipartBody = (MultipartBody) body;
                        MultipartBody.Builder mBuilder = new MultipartBody.Builder();
                        List<MultipartBody.Part> parts = multipartBody.parts();
                        for (int i = 0; i < parts.size(); i++) {
                            mBuilder.addPart(parts.get(i));
                        }
                        Set<Map.Entry<String, Object>> entries = map.entrySet();
                        for (Map.Entry<String, Object> entry : entries) {
                            mBuilder.addFormDataPart(entry.getKey(), entry.getValue().toString());
                        }
                        mBuilder.setType(MultipartBody.FORM);
                        MultipartBody multipartBody1 = mBuilder.build();
                        builder.method(request.method(), multipartBody1);
                    }
                }
                request = builder.build();
                return chain.proceed(request);
            }
        });

KLog

BaseRxSubscriber   e.p
ProgressSubscriber e.p
JsonConverterFactory return create(GsonFactory.getSingletonGson())
 */